package com.limanyik.family.kernel.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.limanyik.family.kernel.communication.dto.FamilyBucketInfoDto;
import com.limanyik.family.kernel.communication.vo.FamilyBucketInfoVo;
import com.limanyik.family.kernel.entity.FamilyBucketInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 家庭桶信息表 Mapper 接口
 * </p>
 *
 * @author limanyi
 * @since 2022-01-24
 */
@Repository(value = "familyBucketInfoMapper")
public interface FamilyBucketInfoMapper extends BaseMapper<FamilyBucketInfo> {

    /**
     * 根据用户ID获取家庭成员信息
     *
     * @param familyBucketInfoDto
     * @return
     */
    List<FamilyBucketInfoVo> getFamilyBucketInfoByUserId(@Param("reqDto") FamilyBucketInfoDto familyBucketInfoDto);

    /**
     * 根据用户ID获取家庭成员分页信息
     *
     * @param familyBucketInfoDto
     * @return
     */
    IPage<FamilyBucketInfoVo> getFamilyBucketInfoByUserId(Page<FamilyBucketInfoVo> page, FamilyBucketInfoDto familyBucketInfoDto);

}
